//
//  CommonUtil.m
//  iphone.mobileoa
//
//  Created by 李亚春 on 13-6-14.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import "CommonUtil.h"
#import "DBFrameService.h"

@implementation CommonUtil

+(NSString *)getDownloadUrl:(NSString *)_url
{
    NSString *wsurl = [DBFrameService getWebServiceUrl];
    NSArray *arr = [wsurl componentsSeparatedByString:@"/"];
    NSMutableString *turl = [[NSMutableString alloc]init];
    for (int i=0; i<arr.count-1; i++) {
        [turl appendString:arr[i]];
        [turl appendString:@"/"];
    }
    [turl appendString:_url];
    return [turl autorelease];
}

@end
